FarPoint.Win アセンブリ > FarPoint.Win 名前空間 > ComplexBorderSide クラス > ComplexBorderSide コンストラクタ : ComplexBorderSide コンストラクタ(Color,Int32,DashStyle,Single[],Single[]) |
'宣言
Public Function New( _ ByVal color As Color, _ ByVal width As Integer, _ ByVal dashStyle As DashStyle, _ ByVal dashPattern() As Single, _ ByVal compoundArray() As Single _ )
public ComplexBorderSide( Color color, int width, DashStyle dashStyle, float[] dashPattern, float[] compoundArray )
複合境界線は複数の線で構成される場合があります。そのためには、compoundArrayで定義されたパターンを持つペンで複合線を描画します。値の配列には、開始点、各線の開始位置、および各スペースの開始位置をペン幅全体の割合で指定します。
複合配列に含まれた要素は 0〜1 の昇順になる必要があります。
複合境界線を表示するサンプルコードについては、「複数の線を持つ複合境界線の作成」を参照してください。ペンオブジェクトの詳細については、Microsoft .NET Framework リファレンスドキュメントの「Penオブジェクトの複合配列」を参照してください。
FarPoint.Win.ComplexBorderSide side = new FarPoint.Win.ComplexBorderSide(Color.Red, 1.5, Drawing2D.DashStyle.Dash, new float() {0.33F, 0.5F, 0.66F, 1.0F}, new float() {0.33F, 0.5F, 0.66F, 1.0F}); FarPoint.Win.ComplexBorder bord = new FarPoint.Win.ComplexBorder(side);
Dim side As New FarPoint.Win.ComplexBorderSide(Color.Red, 1.5, Drawing2D.DashStyle.Dash, New Single() {0.33F, 0.5F, 0.66F, 1.0F}, New Single() {0.33F, 0.5F, 0.66F, 1.0F}) Dim bord As New FarPoint.Win.ComplexBorder(side)